﻿<Window x:Class="WTwitter.View.GeneralView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:vm="clr-namespace:WTwitter.ViewModel"
	xmlns:vw="clr-namespace:WTwitter.View"
    Title="{Binding Path=DisplayName}" SizeToContent="Height" Width="350">
	<Window.Resources>
		<DataTemplate DataType="{x:Type vm:TimelineViewModel}">
			<vw:TimelineContentsView MaxHeight="500" />
		</DataTemplate>
	</Window.Resources>
	
	<!--
	複数のViewModelを表示に対応できる汎用的なWindow
	ViewModelのDataTemplateを
	AppのResourceかここにResourceを作って入れておくこと
	-->
	
	<ContentPresenter Content="{Binding}"/>
</Window>
